﻿{% extends "menu.html" %}
{% block content %}
            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2>主机列表</h2>

                </div>
                <div class="col-lg-2">

                </div>
            </div>
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                <div class="ibox ">

                    <div class="ibox-content">

                        <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover dataTables-example" style="font-size: 13px">
                    <thead>
                    <tr>
                        <th>主机ID</th>
                        <th>主机IP</th>
                        <th>主机Name</th>
                        <th>主机日志路径</th>
                        <th>主机创建时间</th>
                        <th>功能</th>
                        <th>日志地址</th>

                    </tr>
                    </thead>
                    <tbody>
                    {% for i in host_list %}
                    <tr class="gradeX">
                        <td>{{ i.id }}</td>
                        <td>{{ i.host_ip}}
                        <td>{{ i.host_name}}
                        </td>
                        <td>{{ i.host_log_path }}</td>
                        <td class="center">{{ i.host_ctime }}</td>
                        <td class="center"><a href="/log/showlog/?id={{ i.id }}"> 查看实时日志</a> | <a href="/log/cmdlog/?id={{ i.id }}">过滤日志</a>  | <a href="/log/downlog/?id={{ i.id }}">下载日志</a> | <a href="/host/hostdel/?id={{ i.id }}">删除</a></td>
                        <td class="center"><a href="/static/{{ result }}">{{ result }}</a> </td>
                    </tr>
                        {% endfor %}

                    </table>

                        </div>

                    </div>
                </div>
            </div>
            </div>
        </div>
        <div class="footer">
            <div class="float-right">
                 <strong>2.9.2 inspinia</strong>
            </div>
            <div>
                <strong>Copyright</strong> inspinia 2.9.2 &copy; 2014-2018
            </div>
        </div>

        </div>
        </div>



    <!-- Mainly scripts -->
    <script src="/static/js/jquery-3.1.1.min.js"></script>
    <script src="/static/js/popper.min.js"></script>
    <script src="/static/js/bootstrap.js"></script>
    <script src="/static/js/jquery.metismenu.js"></script>
    <script src="/static/js/jquery.slimscroll.min.js"></script>

    <script src="/static/js/datatables.min.js"></script>
    <script src="/static/js/datatables.bootstrap4.min.js"></script>

    <!-- Custom and plugin javascript -->
    <script src="/static/js/inspinia.js"></script>
    <script src="/static/js/pace.min.js"></script>

    <!-- Page-Level Scripts -->


</body>

</html>
{% endblock %}